package cliente.GUI;

import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.JFrame;

/**
 *frame principal de toda la aplicacion
 */
public class Frame extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4238362001352780671L;

	/**
	 * constructor del frama
	 */
	public Frame() {

		// Look and feel
		/*try {
			UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
		} catch (Exception e) {
			
			e.printStackTrace();
		}*/
		//Image icon = new ImageIcon("src/GUI/resources/Icono.png").getImage();
		//setIconImage(icon);

		this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
		getContentPane().setLayout(new BorderLayout());
		this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
		this.setVisible(true);
		this.setTitle("Constantes Vitales");
		this.setPreferredSize(new Dimension(400, 300));
		utilidadesGUI.CentrarPantalla(this);
		getContentPane().add(new inicio());
		this.setResizable(false);
		pack();
		
	}

	/**
	 * @param args
	 * main principal
	 */
	public static void main(String[] args) {
		Frame a = new Frame();
	}

}
